package com.iotproject.eduservice.controller;

import com.iotproject.commonutils.R;
import com.iotproject.eduservice.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/eduservice/indexfront")
//d @CrossOrigin
public class IndexController {

    @Autowired
    IndexService indexService;

    @GetMapping("index")
    public R index() {
        R x = indexService.index();
        //return indexService.index();
        return x;
    }

}
